package io.renren.modules.member.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("steel_member")
public class MemberEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final String SQL_COLUMN = "id,type,name,student_code,sex,birthday,ic_code,create_date,update_date ";

    @TableId
    private Long id;
    /**
     * 会员CODE
     */
//    private String memberCode;

    /**
     * 名称
     */
    private String name;

    private String studentCode;

    private String sex;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    private Integer type; // 人员类型

    private String icCode;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;
}
